package com.wangshb.upms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wangshb.upms.entity.UpmsRolePermission;
import com.wangshb.upms.model.PermissionForRoleModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

@Mapper
public interface UpmsRolePermissionMapper extends BaseMapper<UpmsRolePermission> {

    List<UpmsRolePermission> findList(Page<UpmsRolePermission> page,@Param("condition") UpmsRolePermission condition);

    List<PermissionForRoleModel> loadAllPermissionForRole();
}
